package eerbaar.v2.app.view2;

import eerbaar.persona.IPersona;

public class ImageId {

    private IPersona.Direction direction = null;
    private String name = "";
    private IPersona.State state = null;

    ImageId(String name, IPersona.State state) {
        this.name = name;
        this.state = state;
    }

    public ImageId(String name, IPersona.State state,
            IPersona.Direction direction) {
        this.name = name;
        this.state = state;
        this.direction = direction;
    }

    @Override
    public boolean equals(Object other) {
        return this.toString().equals(other.toString());
    }

    public String getName() {
        return this.name;
    }

    @Override
    public int hashCode() {
        return this.toString().hashCode();
    }

    @Override
    public String toString() {
        return "" + this.name + "" + this.state + "" + this.direction;
    }
}
